9 int n
, h
,l_1
,l_2
,set
=0,num_bricks
=0,bricks_pwal
,move
=0;
19 assert(n
>=1 && n
<=50);
21 /*will the set increase here or before :( */
22 for(l_1
=0;l_1
<n
;l_1
++)
30 /*assert(ch=='@' || ch=='*');*/
37 bricks_pwal
= num_bricks
/n
;
39 for(l_2
=0;l_2
<n
;l_2
++)
41 if(bricks_pwal
-array
[l_2
]>0)
43 move
+= bricks_pwal
-array
[l_2
];
48 printf("Set #%d\n", set
);
49 printf("The minimum number of moves is %d.\n\n", move
);